package com.question_barrier.entity;


import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
 * 关卡状态表实体
 */
@Data
@Entity
@Table(name = "barrier_state")
public class BarrierState {
    @Id
    private long id;
    @Column(name = "open_id")
    private String openId;
    @Column(name = "grade")
    private String grade;
    @Column(name = "subject")
    private String subject;
    @Column(name = "latest_barrier_id")
    private long latestBarrierId;
    @Column(name = "create_at")
    private Date createAt;
    @Column(name = "create_by")
    private String createBy;
    @Column(name = "update_at")
    private Date updateAt;
    @Column(name = "update_by")
    private String updateBy;
    @Column(name = "is_del")
    private byte isDel;
    public BarrierState(){
    }
    public BarrierState(long id, String openId, String grade, String subject, long latestBarrierId, Date createAt, String createBy, Date updateAt, String updateBy, byte isDel) {
        this.id = id;
        this.openId = openId;
        this.grade = grade;
        this.subject = subject;
        this.latestBarrierId = latestBarrierId;
        this.createAt = createAt;
        this.createBy = createBy;
        this.updateAt = updateAt;
        this.updateBy = updateBy;
        this.isDel = isDel;
    }
}
